package com.cucn.ingmall.product.feign;

import com.cucn.common.to.es.SkuEsModel;
import com.cucn.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author KouChaoJie
 * @since: 2021/12/13 11:21
 */
@FeignClient("ingmall-search")
public interface SearchFeignService {
    /**
     * 上架商品
     *
     * @param skuEsModels 需要上架的商品
     */
    @PostMapping("/search/save/product")
    public R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
